/*
 * led.c
 *
 *  Created on: 2023年10月12日
 *      Author: hm
 */
#include "../inc/led.h"
#include "driver/gpio.h"

uint8_t s_led_state = 0;

void blink_led(void)
{
    /* Set the GPIO level according to the state (LOW or HIGH)*/
    gpio_set_level(LED_GPIO, s_led_state);
}

void configure_led(void)
{
    gpio_reset_pin(LED_GPIO);
    /* Set the GPIO as a push/pull output */
    gpio_set_direction(LED_GPIO, GPIO_MODE_OUTPUT);
}
